package com.gitee.ywj1352;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class NacosDemoApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(NacosDemoApp.class, args);

        NamingServiceDemo bean = context.getBean(NamingServiceDemo.class);
        bean.demoRegisterService();
        bean.getConfig();
    }

}
